import { VNode } from "snabbdom";
import { topConfig, displayItemConfig } from "../layout/skeleton";

/*
 * @Author: 邱狮杰
 * @Date: 2021-03-30 21:38:49
 * @LastEditTime: 2021-03-30 23:18:18
 * @FilePath: /upload-template/webpackUploadTemplate/src/types/config.ts
 * @Description: 配置表
 */

export interface uploadTemplateConfig {
  topBarClick?: (
    item: string,
    index: number,
    event: MouseEvent,
    vnode: VNode
  ) => // top component bar click events
  void | topConfig[];
  leftSideClickHandler?: (
    item: string,
    index: number,
    event: MouseEvent,
    vnode: VNode
  ) => void | displayItemConfig[];
}
